<%= breadcrumbs do
  {
    items:
    [
      {
         caption: _("Users"),
         url: (users_path if authorized_for(hash_for_users_path))
      },
      {
        caption: @user.name,
        url: (edit_user_path(@user) if authorized_for(hash_for_edit_user_path(@user)))
      },
      {
        caption: _('Add SSH Key')}
    ],
    resource_url: api_users_path,
    switchable: true,
    switcher_item_url: new_user_ssh_key_path(':id')
  }
end %>
<%= render :partial => 'form' %>
